package com.example.demo.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import com.example.demo.custom.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
public class AfterSaleTargetZ1 extends BaseEntity<Integer>{

	private Date date;
	private SysUser user;
	

	@ManyToOne
	public SysUser getUser() {
		return user;
	}
	public void setUser(SysUser user) {
		this.user = user;
	}
	
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM")
	@DateTimeFormat(pattern = "yyyy-MM")
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	


}
